package com.wanmait.deliverymangementsystem.mapper;

import com.wanmait.deliverymangementsystem.pojo.Users;

import java.util.List;

public interface UsersMapper {

    List<Users> findAll();

    Users selectByPhone_numberAndPassword(Users users);
    void updateLasLoginTimeByID(Integer id);

    void insert(Users users);
    void updateWalletByID(Users users);
    Users findByID(Integer id);
    void updateEnableById(Integer id,Boolean Enable);
    Integer findUserNumber();
    void updateBYID(Users users);
    List<Users> findByUserName(String userName);

    List<Users> findByPhoneNumber(String phoneNumber);

    List<Users> findByEmail(String email);

    List<Users> findByEmailAndPhoneAndUserName(String userName,String phone,String email);

    List<Users> findByEmailAndPhone(String email,String phone);
    List<Users> findByUserNameAndEmail(String email,String name);
    List<Users> findByUserNameAndPhone(String name,String phone);


}